<?php
require_once __DIR__.'/core/Templater.php';

require_once __DIR__.'/core/Authentication.php';

require_once __DIR__.'/core/Redbean.php';

require_once __DIR__.'/bo/BO.php';

R::setup('mysql:host=localhost;dbname=grocer','grocer','grocer');
R::freeze( true ); 
function getFormValue($key)
{
	if(isset($_GET[$key]))
	{
		return $_GET[$key];
	}
	elseif(isset($_POST[$key]))
	{
		return $_POST[$key];
	}else
	{
		return null;
	}
}
